package com.zhigh.urule.quickstart.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class MainController {


    @RequestMapping("/")
    public String redirect() {
        return "redirect:/urule";
    }


    @RequestMapping("/echo")
    @ResponseBody
    public String echo() {
        return "echo";
    }
}
